Add javascript client stuff