Well, maybe it is not straightforward to split it in to. I'll have to duplicate this html file, one for broccoli (which starts process that will serve these scripts) and another one for mocha-phantom that will have absolute paths to run without start any server. 
Tomorrow then.