Revert javascript changes.

Signed-off-by: crynobone <crynobone@gmail.com>