Web script running

I am trying to on beaglebones server run a bonescript file when someone accesses the local web server. Please help. Maybe I can use node.js or something?