Done: refactored JS objective model. Next: review for comments from code and add controls customization