Converting PHP TO JAVASCRIPT