add PDF support for javascript and add to resources