add the missing javascript