Only execute javascript files on the node.js server