2.6 beta

Fixed JavaScript key generation logic.
Removed some debug statements.
Added new JavaScript debug statements.