javascript: switch to jsbn
javascript: added jsident for identifiers
javascript: reduce more functions
javascript: loop to reduce constructor
javascript: remove identity functions