Remove redundant modalframe JS functions.