TIMOB-12488 Include examples of javascript in build
TIMOB-10422 Avoid linking to 3.1.0-only functions, to allow for testing against 3.0.0. Added in type checking and updated project file. TIMOB-12504 Updated return values for errors/successes.