Move javascript out of ajacable section