fix indentations, add firefox support