pseudo code added to js file