Testing some JS code