new styling on header, cleaned up js code