Modal updated with javascript code.