JavaScript unit test file

This file tests polygon object from base/polygon.js.