small fix on JS script

Signed-off-by: portamx <support@portamx.com>