JavaScript unit test file

This file tests user_badge.js.