I'm working with a client and I'm only allowed to use javascript (don't ask why as I have no idea). …