minor touches to the js