Removed jquery and added format options

Removed jQuery from the js and put a second parameter to specify a format through a anonymous function that takes as a parameter the date object that needs to be formatted