Fixed JS Runtime Error