deviceready instead of DOMContentLoaded script