replace js with json version