implementing rails style asset path helpers