Updated syntax in Js object templates
Added a JsCookie object to the Js factory read and write to cookies