Fixed subtitlespec

Changed direct jQuery ajax calls to a wrapper in Environment