Fixed subtitlespec

Changed direct jQuery ajax calls to a wrapper in Environment
Merge pull request #28 from dreisch/subtitlespec_fix

Fixed subtitlespec