transfer js to footer