Created test javascript code