Got javascript called from modal