Change javascript to inline, did not work in production