Add initial JavaScript code for x01
Support 301 rule