adds js resources; quick dirty structure