fixed housing javascript