server/javscript assignment