Created test.js file.
Added test.js reference on index.html.
Removed default Cordova UI element.
Updated receivedEvent method in index.js