updated switch js info