javascript for webapp side