jsstl working with canvas in ios sim