Example of one way to test JS by inject DOM elements.