Moved class js to footer so it can be minified