check for version < 1.7 and rename JS function according to my conventions
fix layout xml