Added functionality to parse translate statements with an options object

Furthermore added unit test for JavascriptParser
Added new exception when context is not an object and improved exception messages