compile js and images