app js bug?