Using strict, fixed issues in client js