some small js fixes
some small fixes