Added Javascript for tabs