escape single quotes to not break JS code
escape single quotes to not break JS code
fix order of width/height parameters (moodle plugin review)