some js code to test library