inlined canvas access and switched to jquery