introduce javascript library structure