Fix errors on index

Extra quotations resulted in subtracting two strings and then a
javascript syntax error
Display compile errors - rebase from @jeremybanks
Merge pull request #3424 from charlierudolph/fix_index

Fix errors on index
Merge pull request #3425 from charlierudolph/compile_errors

Display compile errors - rebase from @jeremybanks