fixed client side js

todo: fix admin login redirect, test with no support, test in other
directory