sample and sinatra js