restricting format to js