Change json to js