remove code that was throwing errors in console

Also, fix some indentation.