Add new method to js file.