Fixed JS bug.

Signed-off-by: TJ Tokarczyk <tj@roninadv.com>