add js stuff. need to rewrite whole server