You do realise that both the latest Firefox and Chrome require way more memory than the N900 has?
You're building it on the device? Good luck with finishing that sometime this year!
edit: yeah, my phone drained again... damn bs, it has to be restarted every half an hour,