Modified and added rules for cached scripts layout

Needed for sorted cached scripts