added some modal code to js