Fixes in Polymer JS template + Spark widget template

@umop