Removing all JS from the <head> tag and moving it to the end of body