javascript issues resolved and style changes