adding usage of requirej and jquery functionality