JS helper for assets