Inlining javascript, a bit more ui tweaking