moved js from head to body