removed duplicate javascript