Moved javascript to footer as well