relative path javascript

The following npm googleplaces code var PlaceSearch = require("./lib/PlaceSearch.js"); is showing error in the javascript file.