javascript && path issues