benerin javascript