Fix jenkins checking component directory
Fix builds + javascript error