adding javascript documentations