simpler statics. moved js code to the body
added requirements