Removed all JS from index to theme.js