Update bitcoin.js

Removed some code and added sanity checks for undefined elements which should be defined in Chrome at least via the ID tag. Such as the id="prices" being undefined but in chrome it works at least.