Moved javascript inclusion to footer