tidy up of js, working on safari sidebar position bug, changing theme colors