Fixing error in layouts(putting java script lines back in all layout files)