[js engine] added loading of source files + added sample controller;