some JS fixes, thanks to codekit!
improving php indentation with PhpStorm and Rarst’s presets.