Testing some old JS code