added some js for testing