Added selenium tests, fixed js inserting, fixed css, cleanup js