add javascript snippet

add define() function() console.log() new object()