added templates to widgets, updated remote javascript loader
merge changes with master