app js fixes