common js file