added example component js file
added corresponding travis-ci test