Converted bower postinstall to js