Inlining javascript