write .js instead of .json