transform code into AST before scanning in experiment tab, fix #160

error handling should be better than simply printing to the console, but my cursory search for alerts in angular wasn't fruitful..

@mozfreddyb r?