ticket:14 Added inline js widget initialization