adding javascript table