re #138 - separated css and js from php file, added variables and cleaning up