moved client side scripts into js folder