responsive layout + js fixes for Safari