Update Base.js

Fixed recursion bug.