Added a JS ID check and local JS vars & functions

Functions (and values) can now be registered to all the current and
future browsers aswell as one specific browser.