app js rearrange