Moved common scripts to footer