upload to javascript dir