JS Fixes

Signed-off-by: Scott Szarapka <scott@szarapka.com>