minor js tweaks

Signed-off-by: Bruno Gaspar <brunofgaspar1@gmail.com>