Floating box directive for Angular 1.x