Added javascript resources and tests.