fixing sample that was broken because of changes in ol3
ident to 4, to be consistent with other code