sinatra port is change, create js prototype