Update perfmap.js

Added the test code