CracklePop in PHP, with some Javascript embellishments