JavaScript Hide and Show Call Back for Modal