moved javascript used mainly for tabs into loc app
modified tabs to be bookmarkable