updated cms js for images, added new simple string cms format
fixed notice in JS