add better javascript syntax and indenting

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>