resolving hearder js issues