Fixed javascript error
Updated version info to 1.2.1