JS bug fixes + proxy script