New code for js catalog