added global stock fields
added js handling of global stock fields
modified the functions to get stock id and value
added the global stock handling class
removed magically reappering functions
added global stock fields
added missing function
tested the class and documented it