Formatted block of JS to improve readability
Changed mobile styles to improve placement of controls