Add rvm to path.
Define the path to PhantomJS for karma.
Change local script path from scripts to the more conventional 'bin'.