split js and jquery parts into separate classes
Updated rendering usage