minor updates to js