ticket:14 Added inline js widget initialization
Merge branch 't14_refactoring'