adding the correct pdf for JS class