Move require Detect to be Inside domready Handler