clean client side code, start using parse