Make empty methods return done in JS