created javascript object for easy inclusion
Added example.js and raw function
Added definition method and example