fix JS error in AMD definition
add more details on browser compat. and example of iOS implementation