Fixed headroomjs implementation