Fixing JS issues

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>