ALL JS FUNCTIONALITIES ADDED