migrated to Xcode 5.1
added XJSFunction