dry up JS functions changing menu colors and page positions