moved loading of js into header again