Fixed an issue with the js