change client js to require