adding javascripting and router file