made prismbox js file for refactoring other js