Modal reconfigured to use javascript