added javascript frontend