js and uploader fix