add custom js to handle map