Added JS Idea helpers, modified JS Idea factory